package com.life.notes.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.life.notes.dto.PhoneQueryPara;
import com.life.notes.model.PhoneEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 手机号DAO
 * @Author Sans
 * @CreateTime 2019/9/14 15:57
 */
@Mapper
public interface PhoneMapper extends BaseMapper<PhoneEntity> {

    /**
     * 列表分页
     *
     * @param page
     * @param filter
     * @return
     */
    IPage<PhoneEntity> selectPhones(IPage<PhoneEntity> page, @Param("filter") PhoneQueryPara filter);

}